-
Notifications
You must be signed in to change notification settings - Fork 27
Extract API to api package #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract API to api package #253
Conversation
1d46f9d to
1810a33
Compare
f5fee04 to
30735b1
Compare
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/ConsistentSnapshotEngine.java
Outdated
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlTypeMetadata.java
Outdated
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/ParametrizedStatementSupport.java
Show resolved
Hide resolved
r2dbc-mysql/src/test/java/io/asyncer/r2dbc/mysql/MySqlTypeMetadataTest.java
Outdated
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/api/SimpleTransactionDefinition.java
Outdated
Show resolved
Hide resolved
r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/MySqlTransactionDefinition.java
Outdated
Show resolved
Hide resolved
- Use strongly typed interfaces - Standardize R2DBC driver MySQL-specific API
30735b1 to
62666b9
Compare
jchrys
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Those users who will not be affected by this modification:
This modification will cause a compilation warning for those users:
This modification will cause those users who need to modify the code to:
I have 3 suggestions:
|
@mirromutth |
|
@jchrys Thanks. I consider avoiding the version growing too fast, because actually this PR did not introduce much new content. Maybe we should delay merging this PR until current known bugs are resolved. Then we consider upgrading to 1.2? WDYT? |
|
@mirromutth Could you please confirm if the following version plan aligns with what you have in mind? if right we can follow that rule. Major: Increment for big bang changes. |
|
LGTM, the major version increment of |
Got it. I agree. |
Motivation:
Extract public API to api package, see also #251
Modification:
Most of changes are to use strongly typed interfaces in the new
apipackage instead of usingr2dbc-spiinterface directly. So, the modification seems large, but it is mainly changes such asimplements ColumnMetadata->implements MySqlColumnMetadata.apipackageCodec/Codecsto useReadableMetadata(MySqlReadableMetadata) instead ofColumnMetadatapublic class NonPublic->[package-private] class NonPublicMySqlStatementtoapi.MySqlStatementColumnDefinitionandMySqlTypeMetadatato newMySqlTypeMetadata, which is implemented byapi.MySqlNativeTypeMetadataMySqlTransactionDefinitionas deprecated, useapi.MySqlTransactionDefinitioninsteadConsistentSnapshotEngineas deprecated, useStringinstead of anenumenumenumfor thisResult:
Standardized our public interfaces